import Foundation

extension String {

  func g_localize(fallback: String) -> String {
    let bundle = Foundation.Bundle(for: GalleryBundle.self)
    let string = NSLocalizedString(self, bundle: bundle, comment: "")
    return string == self ? fallback : string
  }
}
